package com.borya.service.server.impl;

import com.borya.framework.annotation.Autowired;
import com.borya.framework.annotation.Component;
import com.borya.service.server.AutoResourcesService;
import com.borya.task.impl.ResourceAutoTask;

@Component("autoResourcesServiceImpl")
public class AutoResourcesServiceImpl implements AutoResourcesService{

	@Autowired("resourceAutoTask")
	private ResourceAutoTask resourceAutoTask;
	
	public ResourceAutoTask getResourceAutoTask() {
		return resourceAutoTask;
	}

	public void setResourceAutoTask(ResourceAutoTask resourceAutoTask) {
		this.resourceAutoTask = resourceAutoTask;
	}

	@Override
	public void startTask() {
		getResourceAutoTask().process();
	}

}
